/*
 * Copyright (c) 2015. For Intelligent Group.
 */

package com.intelligent.ispc.core.repository.jpa;

import com.intelligent.ispc.core.entity.DataDictionary;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import javax.xml.crypto.Data;
import java.util.List;

/**
 * Created by Peter.Li on 2015/10/30.
 */
public interface DataDictionaryDao extends PagingAndSortingRepository<DataDictionary, Long>, JpaSpecificationExecutor<DataDictionary> {
    DataDictionary findById(Long id);

    List<DataDictionary> findByAttributeNameAndParentId(String attrName, Long parentId);
}
